BaseSubsystem.Exists 方法

檢查變數是否存在。

命名空間IntervalZero.KINGSTAR.Base.Class

組合: IntervalZero.KINGSTAR.Base.Class (於 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0

語法

C#VB
bool Exists(
       string Name,
       IUserVariable Parent = null
)
Function Exists(
       Name As String,
       Parent = null As IUserVariable
) As Boolean

參數

Name

型別:string

變數名稱。

 

Parent

型別:IUserVariable

預設值:null

IUserVariable 的父資料夾,預設會檢查根資料夾中的變數。

回傳值

型別:bool

回傳使用者變數是否存在。

備註

可用的 EtherCAT 狀態

ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP

參見

BaseSubsystem 類別

IntervalZero.KINGSTAR.Base.Class 命名空間